package com.lwt.pojo;

/**
 * @Author Li Weitong
 * @Date 2020/11/22 11:36
 */
public class Student {
    private int studentId;
    private String studentName;
    private String gender;
    private int gradeId;

    public Student() {
    }

    public Student(int studentId, String studentName, String gender, int gradeId) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.gender = gender;
        this.gradeId = gradeId;
    }

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getGradeId() {
        return gradeId;
    }

    public void setGradeId(int gradeId) {
        this.gradeId = gradeId;
    }

    @Override
    public String toString() {
        return
        "学号\t\t姓名\t\t性别\t\t所在年级\n"+
        studentId+"\t\t"+studentName+"\t\t\t"+gender+"\t\t\t"+gradeId+"\n"+
        "---------------------------------------\n";
    }
}
